package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysBrandMapper;
import com.ruoyi.system.domain.SysBrand;
import com.ruoyi.system.service.ISysBrandService;

/**
 * 品牌Service业务层处理
 * 
 * @author yyj
 * @date 2025-07-26
 */
@Service
public class SysBrandServiceImpl implements ISysBrandService 
{
    @Autowired
    private SysBrandMapper sysBrandMapper;

    /**
     * 查询品牌
     * 
     * @param id 品牌主键
     * @return 品牌
     */
    @Override
    public SysBrand selectSysBrandById(Long id)
    {
        return sysBrandMapper.selectSysBrandById(id);
    }

    /**
     * 查询品牌列表
     * 
     * @param sysBrand 品牌
     * @return 品牌
     */
    @Override
    public List<SysBrand> selectSysBrandList(SysBrand sysBrand)
    {
        return sysBrandMapper.selectSysBrandList(sysBrand);
    }

    /**
     * 新增品牌
     * 
     * @param sysBrand 品牌
     * @return 结果
     */
    @Override
    public int insertSysBrand(SysBrand sysBrand)
    {
        return sysBrandMapper.insertSysBrand(sysBrand);
    }

    /**
     * 修改品牌
     * 
     * @param sysBrand 品牌
     * @return 结果
     */
    @Override
    public int updateSysBrand(SysBrand sysBrand)
    {
        return sysBrandMapper.updateSysBrand(sysBrand);
    }

    /**
     * 批量删除品牌
     * 
     * @param ids 需要删除的品牌主键
     * @return 结果
     */
    @Override
    public int deleteSysBrandByIds(Long[] ids)
    {
        return sysBrandMapper.deleteSysBrandByIds(ids);
    }

    /**
     * 删除品牌信息
     * 
     * @param id 品牌主键
     * @return 结果
     */
    @Override
    public int deleteSysBrandById(Long id)
    {
        return sysBrandMapper.deleteSysBrandById(id);
    }
}
